package com.oe.market.modules.ele.model.dto;

import com.google.gson.annotations.SerializedName;
import com.oe.market.modules.base.model.dto.AccountDto;
import com.oe.market.modules.ele.validator.EleRedPackage;


import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;


public class EleRedPackageDto {


    public String method;


    public String platform;
    public String unionid;
    public String openid;
    @Size(min = 32, max = 32, message = "非法的签名")
    public String sign;
//    @NotNull
    @Size(min = 11, max = 11, message = "不符合规则的手机号")
    public String phone;

    @NotNull(message = "红包标识不能为空")
    @Size(min = 16, max = 16, message = "不符合规则的红包标识")
    @SerializedName("group_sn")
    public String groupSn;
    @SerializedName("weixin_avatar")
    public String weixinAvatar;
    @SerializedName("weixin_username")
    public String weixinUsername;
    @SerializedName("lucky_number")
    public Integer luckNumber;

    @SerializedName("hardware_id")
    public String hardwareId;
    @SerializedName("device_id")
    public String deviceId;
    @SerializedName("track_id")
    public String trackId = "undefined";


    @SerializedName("lucky_pos")
    @Max(value = 10,message = "非法的幸运点")
    public Integer luckyPos;
    @EleRedPackage
    public String url;
    public String from;

//    @NotNull(message = "帐号信息不能为空")
//    public AccountDto account;
}
